/*jslint sloppy: true */
/*global require */
var LM = require('../global');
require('./public.html');

LM.controller('TaskPublic', function ($scope, PublicTask, $routeParams) {
	$scope.queryConfig.clear().setActive(true);
	$scope.navConfig.setHref('#/').setType('home').isFromPublic = true;

	$scope.taskList = PublicTask.query({
		mask: 'comment,schemas,createtime',
		projectId: $routeParams.projectId
	});
});
